package MyIO;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class demo8 {
    public static void main(String[] args) {
        try (Reader reader = new FileReader("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_21\\src\\MyFile\\MyText.text");){
            int n;
            while ((n = reader.read()) != -1){
                System.out.print((char) n);
            }
        }catch (IOException e){
            e.printStackTrace();
        }

    }
}
